package note1.chapters.chapter5;

import java.util.Arrays;

class Test {
	final int j;

	public static void main(String... args) {
		for (int i = 0; i < args.length; i++) {
			String string = args[i];
			System.out.println(string);
		}
		int[] arr = { 1, 2, 3, 4, };
		System.out.println(arr.length);
		System.out.println(Arrays.toString(arr));
		change(arr);
		System.out.println(Arrays.toString(arr));
	}

	public Test() {
		j = 0;
	}

	static void change(int[] arr) {

		for (int i = 0; i < arr.length; i++) {
			arr[i] = arr[i] + 1;
		}
	}
}

public class ArrayTest {
	public static void main(String[] args) {
		String[] args2 = { "a", "b" };
		Test.main(args2);
	}
}